<div class="preview">

{{ $baseURL := .Site.BaseURL}} <!-- because of annoying scoping -->
{{ $preview_n := 15 }}
{{ range $index, $value := first $preview_n (where .Site.RegularPages ".Type" "posts") }}
<!-- TODO exclude digest; but do so properly so the total amount of shown post is still $preview_n -->
    {{ if not (in .Params.series "digest") }}
	<p>
	<aside>{{ .Date.Format "January 2, 2006"}} 
		{{ if not (eq .Params.tags nil) }}
			{{ range first 2 $value.Params.tags }}
				<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}/" style="text-decoration:none">#{{ lower . }}</a>
			{{ end }}
			{{ if gt (len .Params.tags) 2 }}
				...
			{{ end }}
		{{ end }}
	</aside>
	<!--<div class="unfold"> Use this class to unfold summary on hover-->
	<a href="{{ .Permalink }}">{{ .Title }}</a>
    {{ partial "collab.html" . }}
	{{ if .Draft }} <span style="color:#FF4136;">(unpublished)</span>
	{{ end }}
	</p>
	{{ if (eq $index 0) }}
		<blockquote>{{ truncate 350 .Summary }}
		<p><a href="{{ .RelPermalink }}">Read more</a><p>
		</blockquote>
	{{ end }}
    {{ end  }}
{{ end }}

<br>
<p> See <a href="{{ .Site.BaseURL }}/archives"> archives</a> for more ... </p>
</div>
